layui.use(['table', 'admin', 'layer', 'form', 'ax', 'func'], function () {
    var $ = layui.$;
    var table = layui.table;
    var $ax = layui.ax;
    var admin = layui.admin;
    var func = layui.func;
    var form = layui.form;
    var layer = layui.layer;

    /**
     * 预估造价
     */
    var KsblMdzx = {
        tableId: "ksblMdzxTable"
    };

    var queryData = {};
    queryData['yaoma'] = Feng.getUrlParam("yaoma");
    queryData['kjqj'] = Feng.getUrlParam("kjqj");

    table.render({
        elem: '#ksblMdzxTable',
        url: Feng.ctxPath + '/btyMdSfc/findAllPsfymx',
        where: queryData,
        even: false,
        cellMinWidth: 130,//全局定义常规单元格的最小宽度，layui 2.2.1 新增
        cols: [[
            {field: 'goodName', width: 170, title: '存货名称', align: "left"},
            {field: 'goodSpec', width: 130, title: '存货规格', align: "left"},
            {field: 'className', width: 150,title: '存货分类名称', align: "left"},
            {field: 'unit', width: 87,title: '计量单位', align: "left"},
            {field: 'enterNum',width: 87,title: '进货数据', align: "left"},
            {field: 'returnNum',width: 87,title: '退货数量', align: "left"},
            {field: 'enterMoney',width: 87,title: '进货金额', align: "left"},
            {field: 'returnMoney',width: 87,title: '退货金额', align: "left"},
        ]],
        page: false
    });

});
